package com.snu.liwei.lyl_api.service;

import com.snu.liwei.lyl_api.entity.User;
import com.snu.liwei.lyl_api.mapper.MyInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MyInfoService {

    @Autowired
    MyInfoMapper myInfoMapper;

    public String getValue(String key)
    {
        return myInfoMapper.getValue(key);
    }

    public List<Map<String,Object>> getAll() {return myInfoMapper.getAll();}

    public Map<String,String> getKV(int id)
    {
        return null;
    }


    public List<User> getUser(String username) {return myInfoMapper.getUser(username);
    }
}
